<?php

$file = "data-file.html";
$fp = fopen($file,"r+");
$fp1 = fopen("another.html","w+");

while($data = fgets($fp))
{
  echo ($data);
  echo "\n----------------\n";

  fputs ($fp1, $data);

}
fclose($fp);
fclose($fp1);

